﻿using Face8280WebSocketServer.DTO;
using Face8280WebSocketServer.Interface;
using Face8280WebSocketServer.Utility.VerifyAttribute;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Controllers
{
    /// <summary>
    /// 查询通讯日志的参数
    /// </summary>
    public class IOLogQueryParameter : BasePageParameter
    {

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 1, sErrorDesc: "设备SN由1-30个字符组成")]
        public string DeviceSN { get; set; }


        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 2, sErrorDesc: "HttpType 由0-30个字符组成")]
        public string HttpType { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 3, sErrorDesc: "IPAddr 由0-30个字符组成")]
        public string IPAddr { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 4, sErrorDesc: "URL 由0-30个字符组成")]
        public string URL { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 4, sErrorDesc: "NotShowURL 由0-30个字符组成")]
        public string NotShowURL { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 5, sErrorDesc: "Method 由0-30个字符组成")]
        public string Method { get; set; }

        [VerifyText(iMax: 30, iMin: 0, required: false, errCode: 5, sErrorDesc: "RequestID 由0-30个字符组成")]
        public string RequestID { get; set; }
        

        [VerifyDateTime(required: true, errCode: 6, sErrorDesc: "出入记录时间必须输入")]
        public DateTime LogTimeBegin { get; set; }

        [VerifyDateTime(required: true, errCode: 7, sErrorDesc: "出入记录时间必须输入")]
        public DateTime LogTimeEnd { get; set; }
    }
}
